#ifndef CLIENTMESSAGE_INC
#define CLIENTMESSAGE_INC

#include "Common/Serialize.h"
#include "Protocol.h"

//Client->Login
struct LoginAccountReq
{
	std::string _account;
	std::string _channel;
	std::string _token;
	MESSAGE_DEF3(LOGIN_ACCOUNT_LOGIN_REQ, std::string, _account, std::string, _channel, std::string, _token);
};

//Login->Client
struct LoginAccountResp
{
	UInt32		_result;
	std::string	_account;
	std::string	_ip;
	UInt16		_port;
	std::string	_token;
	MESSAGE_DEF5(LOGIN_ACCOUNT_LOGIN_RESP, UInt32, _result, std::string, _account, std::string, _ip, UInt16, _port, std::string, _token);
};

//Client->Gate
struct LoginPlayerReq
{
	UInt64		_id;
	std::string _token;
	MESSAGE_DEF2( HALL_PLAYER_LOGIN_REQ, UInt64, _id, std::string, _token );
};

#endif